package com.itheima.Day15;

public enum week {
    MONADY("星期一") {
        @Override
        public void shou() {
            System.out.println("星期1");
        }
    },
    Tuesday("星期二") {
        @Override
        public void shou() {
            System.out.println("星期2");
        }
    },
    Wednesday("星期三") {
        @Override
        public void shou() {
            System.out.println("星期3");
        }
    },
    Thursday("星期四") {
        @Override
        public void shou() {
            System.out.println("星期4");
        }
    },
    Friday("星期五") {
        @Override
        public void shou() {
            System.out.println("星期5");
        }
    },
    Saturday("星期六") {
        @Override
        public void shou() {
            System.out.println("星期6");
        }
    },
    Sunday("星期天") {
        @Override
        public void shou() {
            System.out.println("星期天");
        }
    };
    private week(){}
    public String name;


    private week(String name) {
        this.name = name;
    }

    public abstract void shou();

}

